﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ATM
{
    class View
    {


        Module module = new Module();
        public bool login(String CardNumber, String PinCode)
        {
            

            if (module.login(CardNumber, PinCode))
            {
                return true;
            }
            else
            {
                return false;
            }
            
        }
        public bool TakeCash()
        {
            Form2 takeForm = new Form2();
            
            
            if (module.TakeCash(Convert.ToInt32(takeForm.CashBox.Text)))
            {
                return true;
            }
            else
            {
                return false;
            }
            
        }
    }
}
